// 静态物体类 (障碍物)
#pragma once
#include "GameObject.h"

enum ObjectShape
{
    SHAPE_BOX,
    SHAPE_CYLINDER,
    SHAPE_SPHERE
};

class StaticObject : public GameObject
{
public:
    StaticObject();
    ~StaticObject();

    bool Initialize(LPDIRECT3DDEVICE9 device, ObjectShape shape, const D3DXVECTOR3& size);
    void Render(LPDIRECT3DDEVICE9 device) override;
    void Cleanup() override;

    void SetColor(D3DCOLOR color) { m_color = color; }

private:
    LPD3DXMESH m_pMesh;
    LPDIRECT3DTEXTURE9 m_pTexture;
    ObjectShape m_shape;
    D3DCOLOR m_color;
};
